<script setup lang="ts">
import { storeToRefs } from 'pinia';
import { useCounterStore } from '../store/counter';
// const counterStore = useCounterStore();
// const { count, doubleCount } = storeToRefs(counterStore);
const { count, doubleCount } = storeToRefs(useCounterStore());
</script>

<template>
  <div>
    Home.vue - count: {{ count }}
    <br />
    App.vue - doubleCount: {{ doubleCount }}
  </div>
</template>
